package com.audaque.springboot.foshanupload.web.webdemo.controller;

import com.audaque.springboot.foshanupload.log.anno.WebLogAnno;
import org.springframework.util.AntPathMatcher;
import org.springframework.util.PathMatcher;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author hky
 * @date 2024-03-13 17:56
 * @description TODO
 */
@RestController
@RequestMapping("antPathMatcher")
public class AntPathMatcherController {
    @WebLogAnno
    @GetMapping("/test")
    public boolean test(String p1, String p2) throws Exception {
        PathMatcher pathMatcher = new AntPathMatcher();
        return pathMatcher.match(p1, p2);
    }
}
